<template>
<input type="text" placeholder="请输入内容" v-model="name">
<input type="button" value="添加到列表" @click = 'btnAdd()'>
</template>
<li v-for></li>
<script setup>

function btnAdd(){
    console.log('你说你爱我'
        
    );
    
}

</script>